Profile Management¶
1 2 3 4 5 6 7 | $awsCreds = @{ AccessKey = '' SecretKey = '' StoreAs = 'Production' } Set-AWSCredential @awsCreds |
Load Profile¶
1 | Set-AWSCredential -ProfileName Production |
Set default region¶
1 2 3 | Set-DefaultAWSRegion -Region eu-west-1 Clear-AWSDefaults |
Using Key pairs¶
1 2 | $KeyPair = New-EC2KeyPair -KeyName MyKey $KeyPair.KeyMaterial | Out-File -FilePath 'c:\aws\MyKey.pem' -Encoding ASCII |